<?php
namespace Ader\Controller;

class PlanStatsController extends Controller {

    public function index() {
        try {
            $day = I('get.day', date('Y-m-d'));
            $m    = D2();
            $this->indexExpr = [
                'day' => $day
            ];
            $page = $m->where()->order($this->sortExpr)->page2();

            $this->assign('page', $page);
        } catch(\Exception $e) {
        }

        $this->display();
    }


}
